FROM golang:1.22-alpine

EXPOSE 8082/tcp

WORKDIR /usr/local/src/


COPY ./ ./

RUN go mod download

RUN go build -o ./bin/investcalc ./cmd/investcalc/main.go


CMD ["nohup", "./bin/investcalc", "./config/config_sample.yaml"]

